//
//  ViewController.m
//  HCKeyFrameAnimationView
//
//  Created by 王恕 on 16/3/3.
//  Copyright © 2016年 王恕. All rights reserved.
//

#import "ViewController.h"
#import "HCKeyFrameAnimationView.h"

@interface ViewController ()

@property (nonatomic, weak) HCKeyFrameAnimationView *keyFrameAnimationView;

@end

@implementation ViewController

-(HCKeyFrameAnimationView *)keyFrameAnimationView{
    if (_keyFrameAnimationView == nil) {
        HCKeyFrameAnimationView *keyFrameAnimationView = [HCKeyFrameAnimationView keyFrameAnimationView];
        _keyFrameAnimationView = keyFrameAnimationView;
        
        //设置frame
        keyFrameAnimationView.frame = CGRectMake(0, 190, 375, 219);
        
        [self.view addSubview:keyFrameAnimationView];
    }
    return _keyFrameAnimationView;
}

- (void)viewDidLoad {
    [super viewDidLoad];
    [self keyFrameAnimationView];
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

@end
